<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%
	String message = (String) request.getParameter("message");
%>

<!DOCTYPE html>
<html>
<head>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<c:set value="<%=request.getContextPath()%>" var="ctx"></c:set>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>登录</title>
    <meta name="keywords" content="关键字">
    <meta name="description" content="描述">
    <link rel="shortcut icon" href="favicon.ico"> 
    <link href="${ctx}/css/bootstrap.min.css?v=3.3.6" rel="stylesheet">
<%--     <link href="${ctx}/css/plugins/iCheck/custom.css" rel="stylesheet"> --%>
    <link href="${ctx}/css/font-awesome.css?v=4.4.0" rel="stylesheet">
    <link href="${ctx}/css/animate.css" rel="stylesheet">
    <link href="${ctx}/css/style.css?v=4.1.0" rel="stylesheet">
    <!--[if lt IE 9]>
    <meta http-equiv="refresh" content="0;ie.html" />
    <![endif]-->
</head>

<body class="gray-bg">
    <div class="middle-box  loginscreen  animated fadeInDown" style="background-color: #fff;padding: 0 60px 20px; width: auto; ">
        <div class="">
            <div class="text-center">
                <h1><img src="img/logo.png" width="120px" /></h1>
            
            <h3>果然FruitC</h3>
            </div>
            <form action="${ctx}/login"
				method="post" id="portalLoginForm" name="portalLoginForm">
                <div class="form-group">
                     <div class="row">
                        <div class="col-sm-12 control-label">
                            <input type="text" class="form-control" placeholder="用户名" name="adminView.username" id="username">
                            <!-- <span class="help-block m-b-none">请输入您注册时所填的E-mail</span> -->
                        </div>
                    </div>
                </div>
                <div class="form-group">
                    <div class="row"><!--提交错误或未填写：has-error-->
                        <div class="col-sm-12 control-label">
                            <input type="password" class="form-control" placeholder="密码" name="adminView.password" id="password">
                        </div>
                    </div>
                </div>

                <button onclick="loginOnClick();return false;" class="btn btn-primary block full-width m-b">登 录</button> 
			<c:if test="${message != null}" >
				<div id="msgDiv">
					<label id="errMsg" style="color: red">${message}</label>
				</div>
				</c:if>
            </form>
        </div>
    </div>
        <!-- 全局js -->
    <script src="${ctx}/js/jquery.min.js?v=2.1.4"></script>
    <script src="${ctx}/js/bootstrap.min.js?v=3.3.6"></script>
    <script type="text/javascript" src="${ctx}/js/md5.js"></script>
    <script type="text/javascript" src="${ctx}/js/jquery.validate.min.js" ></script>
    <script type="text/javascript" src="${ctx}/js/login/login.js"></script>
	<script type="text/javascript">
	$(document).ready(function () {
    	if(window.parent != window)    {//如果不是在顶部窗口打开，那么久刷新顶部窗口
			window.parent.location.reload();
		}  
//         $('.i-checks').iCheck({
//             checkboxClass: 'icheckbox_square-green',
//             radioClass: 'iradio_square-green',
//         });
			  	   
    });
	</script>
</body>
</html>
